<?php
/*
 * @Author: Wulala
 * @Date: 2025-03-29 12:05:07
 * @LastEditTime: 2025-04-02 19:55:39
 * @LastEditors: Wulala
 * @Description: 
 * @FilePath: \yoshop\app\api\controller\AppConfig.php
 * 可以输入预定的版权声明、个性签名、空行等
 */
// +----------------------------------------------------------------------
// | 萤火商城系统 [ 致力于通过产品和服务，帮助商家高效化开拓市场 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2024 https://www.yiovo.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed 这不是一个自由软件，不允许对程序代码以任何形式任何目的的再发行
// +----------------------------------------------------------------------
// | Author: 萤火科技 <admin@yiovo.com>
// +----------------------------------------------------------------------
declare (strict_types=1);

namespace app\api\controller;

use think\response\Json;
use app\api\model\AppinfoAppConfig as AppinfoAppConfigModel;

/**
 * 应用信息
 * Class Article
 * @package app\api\controller
 */
class AppConfig extends Controller
{
    /**
     * 获取应用信息
     * @param int $categoryId
     * @return Json
     * @throws \think\db\exception\DbException
     */
    public function getAppInfo(): Json
    {
        $model = new AppinfoAppConfigModel;
        $res=$model->getAppInfo(input());
        if ($res) {
            return $this->renderSuccess($res, '查询成功');
        }
        return $this->renderError($model->getError() ?: '查询失败');
    }


}
